package com.test.service.impl;

import org.springframework.stereotype.Service;

import com.test.bean.User;
import com.test.service.UserService;

@Service//("userService")
public class UserServiceImpl implements UserService {

	@Override
	public User getUser(long id) {
		// TODO 自动生成的方法存根
		User user = new User();  
		user.setId(id);  
		user.setName("zhang");
		test();
		return user;  
	}
	
	/**
	 * 切面不会切入类内部调用
	 */
	@Override
	public void test(){
		System.out.println("测试test");
	}

	@Override
	public User updateUser(long id) {
		// TODO 自动生成的方法存根
		return null;
	}

}
